<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Aloha Editor command insertParagraph tests</title>
	<!-- include qunit -->
	<link rel="stylesheet" href="../vendor/qunit.css" type="text/css"/>

	<script type="text/javascript" src="../vendor/qunit.js"></script>

	<!-- include jquery -->
	<script	src="../vendor/jquery-1.6.1.js" ></script>
	<script type="text/javascript" src="../vendor/jquery.simulate.js"></script>
	<script>
		window.alohaQuery = jQuery.noConflict();
	</script>

	<!-- include aloha -->
	<script src="../../lib/aloha.js" ></script>

	<!-- inject into testswarm -->
	<script type="text/javascript" src="../vendor/swarminject.js"></script>
	<script type="text/javascript" src="./insertparagraphtest.js"></script>
	<script>
		// load command test suite
		require( ['commandtest'] );
	</script>
	<style type="text/css">
		.aloha-editable ol li { list-style-type: decimal; margin: 1.5em; }
		.aloha-editable ol li ol li{ list-style-type: decimal; margin: 2em; }
	</style>
</head>
<body>
	<!-- include the tests -->
	<script>
	var tests = {
			defaultCommand: 'insertparagraph',
			tests: [
					// command 1 
					{  	exclude: [ 'mozilla' ],
						start: 'foo[bar]baz',
						execResult: '<p>foo</p><p>[]baz</p>'
					},
					{  	include: [ 'mozilla' ],
						start: 'foo[bar]baz',
						execResult: '<p>foo</p><p>{}baz</p>'
					},
					{  	start: '<ol><li>[foo]<li>bar</ol>',
						execResult: '<ol><li></li><li>{}</li><li>bar</li></ol>'
					},
					{  	exclude: [ 'msie', 'mozilla' ],
						start: '<ol><li>f[o]o<li>bar</ol>',
						execResult: '<ol><li>f</li><li>[]o</li><li>bar</li></ol>'
					},
					{  	include: [ 'mozilla' ],
						start: '<ol><li>f[o]o<li>bar</ol>',
						execResult: '<ol><li>f</li><li>{}o</li><li>bar</li></ol>'
					},
					{  	include: [ 'msie'],
						start: '<ol><li>f[o]o<li>bar</ol>',
						execResult: '<ol><li>f </li><li>[]o</li><li>bar</li></ol>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '[]foo',
						execResult: '<p><br class="aloha-end-br" data-test-exclude="msie" /></p><p>[]foo</p>'
					},
					{  	include: [ 'mozilla' ],
						start: '[]foo',
						execResult: '<p><br class="aloha-end-br" /></p><p>{}foo</p>'
					},
					{  	start: 'foo[]',
						execResult: '<p>foo</p><p>{}<br class="aloha-end-br" data-test-exclude="msie"></p>'
					},
					{  	start: '<span>foo[]</span>',
						execResult: '<p><span>foo</span></p><p>{}<br class="aloha-end-br" data-test-exclude="msie"></p>'
					},
					{  	exclude: [ 'msie' ],
						start: 'foo[]<br>',
						execResult: '<p>foo</p><p>{}<br class="aloha-end-br" /></p>'
					},
					{  	include: [ 'msie' ],
						start: 'foo[]<br>',
						execResult: '<p>foo</p><p>{}<br /></p>'
					},
					{  	exclude: [ 'mozilla' ],
						start: 'foo[]bar',
						execResult: '<p>foo</p><p>[]bar</p>'
					},
					{  	include: [ 'mozilla' ],
						start: 'foo[]bar',
						execResult: '<p>foo</p><p>{}bar</p>'
					},
					// command 10
					{  	exclude: [ 'mozilla' ],
						start: '<address>[]foo</address>',
						execResult: '<address><br/>[]foo</address>'
					},
					{  	include: [ 'mozilla' ],
						start: '<address>[]foo</address>',
						execResult: '<address><br/>{}foo</address>'
					},
					{  	start: '<address>foo[]</address>',
						execResult: '<address>foo<br/>{}<br class="aloha-end-br" data-test-exclude="msie"></address>'
					},
					{  	start: '<address>foo[]<br></address>',
						execResult: '<address>foo<br/>{}<br/></address>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<address>foo[]bar</address>',
						execResult: '<address>foo<br/>[]bar</address>'
					},
					{  	include: [ 'mozilla' ],
						start: '<address>foo[]bar</address>',
						execResult: '<address>foo<br/>{}bar</address>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<div>[]foo</div>',
						execResult: '<div><br class="aloha-end-br" data-test-exclude="msie"></div><div>[]foo</div>'
					},
					{  	include: [ 'mozilla' ],
						start: '<div>[]foo</div>',
						execResult: '<div><br class="aloha-end-br" data-test-exclude="msie"></div><div>{}foo</div>'
					},
					{  	start: '<div>foo[]</div>',
						execResult: '<div>foo</div><div>{}<br class="aloha-end-br" data-test-exclude="msie"></div>'
					},
					{  	start: '<div>foo[]<br></div>',
						execResult: '<div>foo</div><div>{}<br></div>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<div>foo[]bar</div>',
						execResult: '<div>foo</div><div>[]bar</div>'
					},
					{  	include: [ 'mozilla' ],
						start: '<div>foo[]bar</div>',
						execResult: '<div>foo</div><div>{}bar</div>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<dl><dt>[]foo</dt><dd>bar</dd></dl>',
						execResult: '<dl><dt><br class="aloha-end-br" data-test-exclude="msie"></dt><dt>[]foo</dt><dd>bar</dd></dl>'
					},
					{  	include: [ 'mozilla' ],
						start: '<dl><dt>[]foo</dt><dd>bar</dd></dl>',
						execResult: '<dl><dt><br class="aloha-end-br" data-test-exclude="msie"></dt><dt>{}foo</dt><dd>bar</dd></dl>'
					},
					{  	start: '<dl><dt>foo[]</dt><dd>bar</dd></dl>',
						execResult: '<dl><dt>foo</dt><dd>{}<br class="aloha-end-br" data-test-exclude="msie"></dd><dd>bar</dd></dl>'
					},
					// command 20
					{  	start: '<dl><dt>foo[]<br></dt><dd>bar</dd></dl>',
						execResult: '<dl><dt>foo</dt><dd>{}<br></dd><dd>bar</dd></dl>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<dl><dt>foo[]bar</dt><dd>baz</dd></dl>',
						execResult: '<dl><dt>foo</dt><dt>[]bar</dt><dd>baz</dd></dl>'
					},
					{  	include: [ 'mozilla' ],
						start: '<dl><dt>foo[]bar</dt><dd>baz</dd></dl>',
						execResult: '<dl><dt>foo</dt><dt>{}bar</dt><dd>baz</dd></dl>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<dl><dt>foo</dt><dd>[]bar</dd></dl>',
						execResult: '<dl><dt>foo</dt><dd><br class="aloha-end-br" data-test-exclude="msie"></dd><dd>[]bar</dd></dl>'
					},
					{  	include: [ 'mozilla' ],
						start: '<dl><dt>foo</dt><dd>[]bar</dd></dl>',
						execResult: '<dl><dt>foo</dt><dd><br class="aloha-end-br" data-test-exclude="msie"></dd><dd>{}bar</dd></dl>'
					},
					{  	start: '<dl><dt>foo</dt><dd>bar[]</dd></dl>',
						execResult: '<dl><dt>foo</dt><dd>bar</dd><dt>{}<br class="aloha-end-br" data-test-exclude="msie"></dt></dl>'
					},
					{  	start: '<dl><dt>foo</dt><dd>bar[]<br></dd></dl>',
						execResult: '<dl><dt>foo</dt><dd>bar</dd><dt>{}<br></dt></dl>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<dl><dt>foo</dt><dd>bar[]baz</dd></dl>',
						execResult: '<dl><dt>foo</dt><dd>bar</dd><dd>[]baz</dd></dl>'
					},
					{  	include: [ 'mozilla' ],
						start: '<dl><dt>foo</dt><dd>bar[]baz</dd></dl>',
						execResult: '<dl><dt>foo</dt><dd>bar</dd><dd>{}baz</dd></dl>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<h1>[]foo</h1>',
						execResult: '<h1><br class="aloha-end-br" data-test-exclude="msie"></h1><h1>[]foo</h1>'
					},
					{  	include: [ 'mozilla' ],
						start: '<h1>[]foo</h1>',
						execResult: '<h1><br class="aloha-end-br" data-test-exclude="msie"></h1><h1>{}foo</h1>'
					},
					{  	start: '<h1>foo[]</h1>',
						execResult: '<h1>foo</h1><p>{}<br class="aloha-end-br" data-test-exclude="msie"></p>'
					},
					{  	start: '<h1>foo[]<br></h1>',
						execResult: '<h1>foo</h1><p>{}<br></p>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<h1>foo[]bar</h1>',
						execResult: '<h1>foo</h1><h1>[]bar</h1>'
					},
					{  	include: [ 'mozilla' ],
						start: '<h1>foo[]bar</h1>',
						execResult: '<h1>foo</h1><h1>{}bar</h1>'
					},
					// command 30
					{  	exclude: [ 'mozilla' ],
						start: '<ol><li>[]foo</li></ol>',
						execResult: '<ol><li></li><li>[]foo</li></ol>'
					},
					{  	include: [ 'mozilla' ],
						start: '<ol><li>[]foo</li></ol>',
						execResult: '<ol><li></li><li>{}foo</li></ol>'
					},
					{  	start: '<ol><li>foo[]</li></ol>',
						execResult: '<ol><li>foo</li><li>{}</li></ol>'
					},
					{  	start: '<ol><li>foo[]<br></li></ol>',
						execResult: '<ol><li>foo</li><li>{}<br></li></ol>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<ol><li>foo[]bar</li></ol>',
						execResult: '<ol><li>foo</li><li>[]bar</li></ol>'
					},
					{  	include: [ 'mozilla' ],
						start: '<ol><li>foo[]bar</li></ol>',
						execResult: '<ol><li>foo</li><li>{}bar</li></ol>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<p>[]foo</p>',
						execResult: '<p><br class="aloha-end-br" data-test-exclude="msie"></p><p>[]foo</p>'
					},
					{  	include: [ 'mozilla' ],
						start: '<p>[]foo</p>',
						execResult: '<p><br class="aloha-end-br" data-test-exclude="msie"></p><p>{}foo</p>'
					},
					{  	start: '<p>foo[]</p>',
						execResult: '<p>foo</p><p>{}<br class="aloha-end-br" data-test-exclude="msie"></p>'
					},
					{  	start: '<p>foo[]<br></p>',
						execResult: '<p>foo</p><p>{}<br></p>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<p>foo[]bar</p>',
						execResult: '<p>foo</p><p>[]bar</p>'
					},
					{  	include: [ 'mozilla' ],
						start: '<p>foo[]bar</p>',
						execResult: '<p>foo</p><p>{}bar</p>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<pre>[]foo</pre>',
						execResult: '<pre><br/>[]foo</pre>'
					},
					{  	include: [ 'mozilla' ],
						start: '<pre>[]foo</pre>',
						execResult: '<pre><br/>{}foo</pre>'
					},
					{  	start: '<pre>foo[]</pre>',
						execResult: '<pre>foo<br/>{}<br class="aloha-end-br" data-test-exclude="msie"></pre>'
					},
					// command 40
					{  	start: '<pre>foo[]<br></pre>',
						execResult: '<pre>foo<br/>{}<br></pre>'
					},
					{  	exclude: [ 'mozilla' ],
						start: '<pre>foo[]bar</pre>',
						execResult: '<pre>foo<br/>[]bar</pre>'
					},
					{  	include: [ 'mozilla' ],
						start: '<pre>foo[]bar</pre>',
						execResult: '<pre>foo<br/>{}bar</pre>'
					},
					{  	start: '<pre>foo[]<br><br></pre>',
						execResult: '<pre>foo<br/>{}<br><br></pre>'
					},
					{  	start: '<pre>foo<br>{}<br></pre>',
						execResult: '<pre>foo<br><br/>{}<br></pre>'
					},
					{  	exclude:['msie', 'mozilla'],
						start: '<pre>foo&#10;[]</pre>',
						execResult: '<pre>foo<br/>[]&#10;</pre>'
					},
					{  	include:['msie', 'mozilla'],
						start: '<pre>foo&#10;[]</pre>',
						execResult: '<pre>foo<br/>{}&#10;</pre>'
					},
					{  	exclude:[ 'mozilla' ],
						start: '<pre>foo[]&#10;</pre>',
						execResult: '<pre>foo<br/>[]&#10;</pre>'
					},
					{  	include:[ 'mozilla' ],
						start: '<pre>foo[]&#10;</pre>',
						execResult: '<pre>foo<br/>{}&#10;</pre>'
					},
					{  	exclude:[ 'mozilla' ],
						start: '<pre>foo&#10;[]&#10;</pre>',
						execResult: '<pre>foo&#10;<br/>[]&#10;</pre>'
					},
					{  	include:[ 'mozilla' ],
						start: '<pre>foo&#10;[]&#10;</pre>',
						execResult: '<pre>foo&#10;<br/>{}&#10;</pre>'
					},
					{  	start: '<ol><li>{}<br></li></ol>',
						execResult: '<p>{}<br/></p>'
					},
					{  	exclude: ['msie'],
						start: 'foo<ol><li>{}<br></li></ol>',
						execResult: 'foo<p>{}<br/></p>'
					},
					{  	include: ['msie'],
						start: 'foo<ol><li>{}<br></li></ol>',
						execResult: 'foo <p>{}<br/></p>'
					},
					// command 50
					{  	start: '<ol><li>{}<br></li></ol>foo',
						execResult: '<p>{}<br/></p>foo'
					},
					{  	start: '<ol><li>foo</li><li>{}<br></li></ol>',
						execResult: '<ol><li>foo</li></ol><p>{}<br/></p>'
					},
					{  	start: '<ol><li>{}<br/></li><li>bar</li></ol>',
						execResult: '<p>{}<br/></p><ol><li>bar</li></ol>'
					},
					{  	start: '<ol><li>foo</li><ul><li>{}<br></ul></ol>',
						execResult: '<ol><li>foo</li><li>{}<br></li></ol>'
					},
					{  	start: '<dl><dt>{}<br></dt></dl>',
						execResult: '<p>{}<br></p>'
					},
					{  	start: '<dl><dt>foo</dt><dd>{}<br></dd></dl>',
						execResult: '<dl><dt>foo</dt></dl><p>{}<br></p>'
					},
					{  	start: '<dl><dt>{}<br></dt><dd>bar</dd></dl>',
						execResult: '<p>{}<br></p><dl><dd>bar</dd></dl>'
					},
					{  	start: '<dl><dt>foo</dt><dd>bar<dl><dt>{}<br></dt><dd>baz</dd></dl></dd></dl>',
						execResult: '<dl><dt>foo</dt><dd>bar</dd><dt>{}<br></dt><dd><dl><dd>baz</dd></dl></dd></dl>'
					},
					{  	exclude: ['msie'],
						start: '<dl><dt>foo</dt><dd>bar<dl><dt>baz</dt><dd>{}<br></dd></dl></dd></dl>',
						execResult: '<dl><dt>foo</dt><dd>bar<dl><dt>baz</dt></dl></dd><dd>{}<br></dd></dl>'
					},
					{  	include: ['msie'],
						start: '<dl><dt>foo</dt><dd>bar<dl><dt>baz</dt><dd>{}<br></dd></dl></dd></dl>',
						execResult: '<dl><dt>foo</dt><dd>bar <dl><dt>baz</dt></dl></dd><dd>{}<br></dd></dl>'
					},
					// command 60
					{  	exclude:['mozilla'],
						start: '<h1>foo[bar</h1><p>baz]quz</p>',
						execResult: '<h1>foo</h1><h1>[]quz</h1>'
					},
					{  	include:['mozilla'],
						start: '<h1>foo[bar</h1><p>baz]quz</p>',
						execResult: '<h1>foo</h1><h1>{}quz</h1>'
					},
					{  	exclude:['mozilla'],
						start: '<p>foo[bar</p><h1>baz]quz</h1>',
						execResult: '<p>foo</p><p>[]quz</p>'
					},
					{  	include:['mozilla'],
						start: '<p>foo[bar</p><h1>baz]quz</h1>',
						execResult: '<p>foo</p><p>{}quz</p>'
					},
					{  	start: '<p>foo</p>{}<br>',
						execResult: '<p>foo</p><p><br class="aloha-end-br" data-test-exclude="msie"></p><p>{}<br></p>'
					},
					{  	start: '{}<br><p>foo</p>',
						execResult: '<p><br class="aloha-end-br" data-test-exclude="msie"></p><p>{}<br></p><p>foo</p>'
					},
					{  	exclude: ['msie'],
						start: '<p>foo</p>{}<br><h1>bar</h1>',
						execResult: '<p>foo</p><p><br class="aloha-end-br" data-test-exclude="msie"></p><p>{}<br></p><h1>bar</h1>'
					},
					{  	exclude: ['msie'],
						start: '<h1>foo</h1>{}<br><p>bar</p>',
						execResult: '<h1>foo</h1><p><br class="aloha-end-br" data-test-exclude="msie"></p><p>{}<br></p><p>bar</p>'
					},
					{  	exclude: ['msie'],
						start: '<h1>foo</h1>{}<br><h2>bar</h2>',
						execResult: '<h1>foo</h1><p><br class="aloha-end-br" data-test-exclude="msie"></p><p>{}<br></p><h2>bar</h2>'
					},
					{  	start: '<p>foo</p><h1>[bar]</h1><p>baz</p>',
						execResult: '<p>foo</p><h1><br class="aloha-end-br" data-test-exclude="msie"></h1><p>{}<br class="aloha-end-br" data-test-exclude="msie"></p><p>baz</p>'
					},
					{  	exclude: ['msie'],
						start: '<p>foo</p>{<h1>bar</h1>}<p>baz</p>',
						execResult: '<p>foo</p><h1><br class="aloha-end-br" data-test-exclude="msie"></h1><h1>[]baz</h1>'
					},
					{  	exclude:['mozilla'],
						start: '<blockquote>[]foo</blockquote>',
						execResult: '<blockquote><p><br class="aloha-end-br" data-test-exclude="msie"></p><p>[]foo</p></blockquote>'
					},
					{  	include:['mozilla'],
						start: '<blockquote>[]foo</blockquote>',
						execResult: '<blockquote><p><br class="aloha-end-br" data-test-exclude="msie"></p><p>{}foo</p></blockquote>'
					},
					// command 70
					{  	start: '<blockquote>foo[]</blockquote>',
						execResult: '<blockquote><p>foo</p><p>{}<br class="aloha-end-br" data-test-exclude="msie" /></p></blockquote>'
					},
					{  	exclude:['mozilla'],
						start: '<blockquote>foo[]<br></blockquote>',
						execResult: '<blockquote><p>foo</p><p>{}<br /></p></blockquote>'
					},
					{  	include:['mozilla'],
						start: '<blockquote>foo[]<br></blockquote>',
						execResult: '<blockquote><p>foo</p><p>{}<br class="aloha-end-br" /></p></blockquote>'
					},
					{  	exclude:['mozilla'],
						start: '<blockquote>foo[]bar</blockquote>',
						execResult: '<blockquote><p>foo</p><p>[]bar</p></blockquote>'
					},
					{  	include:['mozilla'],
						start: '<blockquote>foo[]bar</blockquote>',
						execResult: '<blockquote><p>foo</p><p>{}bar</p></blockquote>'
					},
					{  	exclude:['mozilla'],
						start: '<blockquote><p>[]foo</p></blockquote>',
						execResult: '<blockquote><p><br class="aloha-end-br" data-test-exclude="msie"></p><p>[]foo</p></blockquote>'
					},
					{  	include:['mozilla'],
						start: '<blockquote><p>[]foo</p></blockquote>',
						execResult: '<blockquote><p><br class="aloha-end-br" data-test-exclude="msie"></p><p>{}foo</p></blockquote>'
					},
					{  	exclude: ['msie'],
						start: '<blockquote><p>foo[]</blockquote>',
						execResult: '<blockquote><p>foo</p><p>{}<br class="aloha-end-br" data-test-exclude="msie"></p></blockquote>'
					},
					{  	include: ['msie'],
						start: '<blockquote><p>foo[]</blockquote>',
						execResult: '<blockquote><p>foo </p><p>{}<br class="aloha-end-br" data-test-exclude="msie"></p></blockquote>'
					},
					{  	exclude: [ 'mozilla', 'msie' ],
						start: '<blockquote><p>foo[]bar</blockquote>',
						execResult: '<blockquote><p>foo</p><p>[]bar</p></blockquote>'
					},
					{  	include: ['mozilla'],
						start: '<blockquote><p>foo[]bar</blockquote>',
						execResult: '<blockquote><p>foo </p><p>{}bar</p></blockquote>'
					},
					{  	include: ['msie'],
						start: '<blockquote><p>foo[]bar</blockquote>',
						execResult: '<blockquote><p>foo </p><p>[]bar</p></blockquote>'
					},
					{  	start: '<blockquote><p>foo[]</p><p>bar</p></blockquote>',
						execResult: '<blockquote><p>foo</p><p>{}<br class="aloha-end-br" data-test-exclude="msie"></p><p>bar</p></blockquote>'
					},
					{  	exclude: ['mozilla'],
						start: '<blockquote><p>foo[]bar</p><p>baz</p></blockquote>',
						execResult: '<blockquote><p>foo</p><p>[]bar</p><p>baz</p></blockquote>'
					},
					{  	include: ['mozilla'],
						start: '<blockquote><p>foo[]bar</p><p>baz</p></blockquote>',
						execResult: '<blockquote><p>foo</p><p>{}bar</p><p>baz</p></blockquote>'
					},
					{  	start: '<span>foo[]bar</span>',
						execResult: '<p><span>foo</span></p><p><span>[]bar</span></p>'
					},
					// command 80
					{  	start: '<span>foo[]bar</span>baz',
						execResult: '<p><span>foo</span></p><p><span>[]bar</span>baz</p>'
					},
					{  	start: '<b>foo[]bar</b>',
						execResult: '<p><b>foo</b></p><p><b>[]bar</b></p>'
					},
					{  	start: '<b>foo[]bar</b>baz',
						execResult: '<p><b>foo</b></p><p><b>[]bar</b>baz</p>'
					},
					{  	exclude: ['mozilla'],
						start: '<b>foo[]</b>bar',
						execResult: '<p><b>foo</b></p><p>[]bar</p>'
					},
					{  	include: ['mozilla'],
						start: '<b>foo[]</b>bar',
						execResult: '<p><b>foo</b></p><p>{}bar</p>'
					},
					{  	start: 'foo<b>[]bar</b>',
						execResult: '<p>foo</p><p><b>[]bar</b></p>'
					},
					{  	start: '<b>foo[]</b><i>bar</i>',
						execResult: '<p><b>foo</b></p><p><i>[]bar</i></p>'
					},
					{  	start: '<b id=x class=y>foo[]bar</b>',
						execResult: '<p><b id="x" class="y">foo</b></p><p><b class="y">[]bar</b></p>'
					},
					{  	start: '<i><b>foo[]bar</b>baz</i>',
						execResult: '<p><i><b>foo</b></i></p><p><i><b>[]bar</b>baz</i></p>'
					},
					{  	start: '<p><b>foo[]bar</b></p>',
						execResult: '<p><b>foo</b></p><p><b>[]bar</b></p>'
					},
					{  	start: '<p><b>[]foo</b></p>',
						execResult: '<p><br class="aloha-end-br" data-test-exclude="msie"></p><p><b>[]foo</b></p>'
					},
					// command 90
					{  	start: '<p><b id=x class=y>foo[]bar</b></p>',
						execResult: '<p><b id="x" class="y">foo</b></p><p><b class="y">[]bar</b></p>'
					},
					{  	start: '<div><b>foo[]bar</b></div>',
						execResult: '<div><b>foo</b></div><div><b>[]bar</b></div>'
					},
					{  	start: '<a href=foo>foo[]bar</a>',
						execResult: '<p><a href="foo">foo</a></p><p><a href="foo">[]bar</a></p>'
					},
					{  	start: '<a href=foo>foo[]bar</a>baz',
						execResult: '<p><a href="foo">foo</a></p><p><a href="foo">[]bar</a>baz</p>'
					},
					{  	exclude: ['mozilla'],
						start: '<a href=foo>foo[]</a>bar',
						execResult: '<p><a href="foo">foo</a></p><p>[]bar</p>'
					},
					{  	include: ['mozilla'],
						start: '<a href=foo>foo[]</a>bar',
						execResult: '<p><a href="foo">foo</a></p><p>{}bar</p>'
					},
					{  	start: 'foo<a href=foo>[]bar</a>',
						execResult: '<p>foo</p><p><a href=foo>[]bar</a></p>'
					},
					{  	exclude: ['mozilla'],
						start: '<p>foo<span style=color:#aBcDeF>[bar]</span>baz</p>',
						execResult: '<p>foo<span style="color:#aBcDeF"></span></p><p>[]baz</p>'
					},
					{  	include: ['mozilla'],
						start: '<p>foo<span style=color:#aBcDeF>[bar]</span>baz</p>',
						execResult: '<p>foo<span style="color:#aBcDeF"></span></p><p>{}baz</p>'
					},
					{  	exclude: ['mozilla'],
						start: '<p>foo<span style=color:#aBcDeF>{bar}</span>baz</p>',
						execResult: '<p>foo<span style="color:#aBcDeF"></span></p><p>[]baz</p>'
					},
					{  	include: ['mozilla'],
						start: '<p>foo<span style=color:#aBcDeF>{bar}</span>baz</p>',
						execResult: '<p>foo<span style="color:#aBcDeF"></span></p><p>{}baz</p>'
					},
					{  	exclude: ['mozilla'],
						start: '<p>foo{<span style=color:#aBcDeF>bar</span>}baz</p>',
						execResult: '<p>foo<span style="color:#aBcDeF"></span></p><p>[]baz</p>'
					},
					{  	include: ['mozilla'],
						start: '<p>foo{<span style=color:#aBcDeF>bar</span>}baz</p>',
						execResult: '<p>foo<span style="color:#aBcDeF"></span></p><p>{}baz</p>'
					},
					{  	exclude: ['mozilla'],
						start: '<p>[foo<span style=color:#aBcDeF>bar]</span>baz</p>',
						execResult: '<p><br class="aloha-end-br" data-test-exclude="msie"></p><p>[]baz</p>'
					},
					{  	include: ['mozilla'],
						start: '<p>[foo<span style=color:#aBcDeF>bar]</span>baz</p>',
						execResult: '<p><br class="aloha-end-br" data-test-exclude="msie"></p><p>{}baz</p>'
					},
					// command 100
					{  	exclude: ['mozilla'],
						start: '<p>{foo<span style=color:#aBcDeF>bar}</span>baz</p>',
						execResult: '<p><br class="aloha-end-br" data-test-exclude="msie"></p><p>[]baz</p>'
					},
					{  	include: ['mozilla'],
						start: '<p>{foo<span style=color:#aBcDeF>bar}</span>baz</p>',
						execResult: '<p><br class="aloha-end-br" data-test-exclude="msie"></p><p>{}baz</p>'
					},
					{  	start: '<p>foo<span style=color:#aBcDeF>[bar</span>baz]</p>',
						execResult: '<p>foo<span style="color:#aBcDeF"></span></p><p>{}<br class="aloha-end-br" data-test-exclude="msie"></p>'
					},
					{  	start: '<p>foo<span style=color:#aBcDeF>{bar</span>baz}</p>',
						execResult: '<p>foo<span style="color:#aBcDeF"></span></p><p>{}<br class="aloha-end-br" data-test-exclude="msie"></p>'
					},
					{  	exclude: ['mozilla'],
						start: '<p>foo<span style=color:#aBcDeF>[bar</span><span style=color:#fEdCbA>baz]</span>quz</p>',
						execResult: '<p>foo<span style="color:#aBcDeF"></span></p><p>[]quz</p>'
					},
					{  	include: ['mozilla'],
						start: '<p>foo<span style=color:#aBcDeF>[bar</span><span style=color:#fEdCbA>baz]</span>quz</p>',
						execResult: '<p>foo<span style="color:#aBcDeF"></span></p><p>{}quz</p>'
					},
					{  	exclude: ['msie'],
						start: '<ol><li>foo[]<ul><li>bar</li></ul></li></ol>',
						execResult: '<ol><li>foo</li><li>{}<br class="aloha-end-br" data-test-exclude="msie"><ul><li>bar</li></ul></li></ol>'
					},
					{  	include: ['msie'],
						start: '<ol><li>foo[] <ul><li>bar</li></ul></li></ol>',
						execResult: '<ol><li>foo</li><li>[] <ul><li>bar</li></ul></li></ol>'
					},
					{	exclude: 'msie',
						start: '<ul><li>foo<ul><li>bar</li><li>{}<br/></li><li>baz</li></ul></li></ul>',
						execResult: '<ul><li>foo<ul><li>bar</li></ul></li><li>{}<br/><ul><li>baz</li></ul></li></ul>'
					},
					{	include: 'msie',
						start: '<ul><li>foo<ul><li>bar</li><li>{}</li><li>baz</li></ul></li></ul>',
						execResult: '<ul><li>foo <ul><li>bar</li></ul></li><li>{} <ul><li>baz</li></ul></li></ul>'
					},
					{	exclude: 'msie',
						start: '<ul><li>foo<ul><li>bar</li></ul></li><li>{}</li><li>baz</li></ul>',
						execResult: '<ul><li>foo<ul><li>bar</li></ul></li></ul><p>{}<br class="aloha-end-br"/></p><ul><li>baz</li></ul>'
					},
					{	include: 'msie',
						start: '<ul><li>foo<ul><li>bar</li></ul></li><li>{}</li><li>baz</li></ul>',
						execResult: '<ul><li>foo <ul><li>bar</li></ul></li></ul><p>{}</p><ul><li>baz</li></ul>'
					}
			]
	}
	</script>
	<h1 id="qunit-header">Aloha Editor insertParagraph tests</h1>
	<h2 id="qunit-banner"></h2>
	<div id="qunit-testrunner-toolbar"></div>
	<h2 id="qunit-userAgent"></h2>
	<ol id="qunit-tests"></ol>
	<div id="qunit-fixture"></div>
	<div id="edit" style="margin:20px; border:1px solid #000000;"></div>
	<div id="logBody"></div>
</body>
</html>
